<%@ page contentType="text/html;charset=UTF-8"%>

<%@ page import="java.util.Vector,com.ejoysoft.wlanyz.business.Carriers,com.ejoysoft.common.Constants,com.ejoysoft.common.exception.NoRightException" %>
<%@page import="sun.reflect.generics.tree.IntSignature"%>
<%@page import="com.ejoysoft.common.Format"%>
<%@ page import="java.util.List"%>
<%@ include file="../include/jsp/head.jsp"%>



<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 

String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String width = "500";
String height = "500";


%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=application.getAttribute("APP_TITLE")%></title> 
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../include/date/popc.js"></script>
<script src="../include/js/list.js"></script>
<script src="../js/jquery-1.4.1.min.js"></script>
<script language="javascript">


//function check(){
           
        //   var input = document.getElementsByTagName("input");   
  		//   var count = 0;        
        //  var  indexs = "";    
       //   for(var i = 0; i < input.length; i ++)         
       //    {          
       //   if(input[i].type == "checkbox" && input[i].id.indexOf("checkbox") != -1)//判断id为strTest的checkbox      
      //    {     
       //   if (input[i].checked)  
      //     {     //这个地方是获取你选定了的的checkbox的Value     
  		//if( count == 0){
 		//	var indexs =  indexs  + input[i].value;
        //      count ++; 
 		//	}else if(count > 0){
 		//	var indexs =  indexs+ ","  + input[i].value;
        //      count ++; 
 		//	}
 		//	}
		//	}   
        //	}    
        //   if(count == 0) 
        //  {          
     	//	alert("请选择您的测试任务！"); 
        //      return false;         
    	//	}  
     	//	 document.getElementById("indexs").value=indexs;
      	//	frm.submit();         
  //  }
 
    
    function check(){
          var checkboxs = document.getElementsByName("checkbox");
          var indexs="";
          var flag=1;
          for(var i=0;i<checkboxs.length;i++){
               if(checkboxs[i].checked == true){
                	if(flag==1){
               		indexs=indexs+checkboxs[i].value;
                		flag=0;
                	}
               	else{
                		indexs=indexs+','+checkboxs[i].value;
                	}
               }
          } 
           
           var temp = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"+
			" codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'"+
			" width='100%' height='100%' id='ie_chart' align='middle'>"+
			" <param name='allowScriptAccess' value='always' />"+
			" <param name='movie'"+
			" value='<%=url%>/open-flash-chart.swf?width=500&height=500&data=<%=url%>/threenet/moreindex_analysis.jsp?indexs="+indexs+"&random=<%=Math.random()%>' />" +
			" <param name='quality' value='high' />"+
			" <param name='bgcolor' value='#FFFFFF' />"+
			" <embed src='<%=url%>/open-flash-chart.swf?data=<%=url%>/threenet/moreindex_analysis.jsp' quality='high'"+
			" bgcolor='#FFFFFF' width='<%=width%>' height='<%=height%>'"+
			" name='chart' align='middle' allowScriptAccess='always' "+
			" type='application/x-shockwave-flash'"+
			" pluginspage='http://www.macromedia.com/go/getflashplayer'" +
			" id='chart'/>"+
			" </object>";
           //alert(temp);
           $("#imageDiv").html(temp);
         //  $("#imageDiv").html("HELLS");
           //frm.submit(); 
           
    }        
           
    //} 
</script>
<base href="<%=basePath%>"/>
    
    <title>柱形图</title>
    
	<meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
	<meta http-equiv="description" content="This is my page"/>
	

  </head>
  
  <body>
<form name=frm method=post action=""> 
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><img src="../images/ri_list.jpg" width="14" height="14" align="bottom" />&nbsp;请选择指标进行对比分析(请选择后查看)</td>
  </tr>
</table>


<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
     <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
     <input type="checkbox" name="checkbox" id="checkbox" value="intAp_Relevacy_Sucrate" onclick="" style="height:12px;" />
    AP关联成功率</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox"id="checkbox" value="intAp_Relevacy_Delay" onclick="" style="height:12px;" />
    AP关联时延    </td>
   <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
   <input type="checkbox" name="checkbox" id="checkbox" value="intWeb_Auth_Sucrate" onclick="" style="height:12px;" />
   WEB认证成功率</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value="intWeb_Off_Sucrate" onclick="" style="height:12px;" />
    WEB下线成功率</td>
   <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
   <input type="checkbox" name="checkbox" id="checkbox" value="intPeap_Auth_Sucrate" onclick="" style="height:12px;" />
   PEAP认证成功率</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value="intPeap_Off_Sucrate" onclick="" style="height:12px;" />
   PEAP下线成功率</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value="intHttp_Req_Sucrate" onclick="" style="height:12px;" />
    HTTP请求成功率</td>
  </tr>
  <tr>
     <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
     <input type="checkbox" name="checkbox" id="checkbox" value="intPing_Sucrate" onclick="" style="height:12px;" />
    PING成功率</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value="intFtp_Up_Sucrate" onclick="" style="height:12px;" />
    FTP上行成功率</td>
   <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
   <input type="checkbox" name="checkbox" id="checkbox" value="intFtp_Down_Sucrate" onclick="" style="height:12px;" />
   FTP下行成功率</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value=" intUser_Seg_Sucrate" onclick="" style="height:12px;" />
    用户隔离成功率</td>
   <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
   <input type="checkbox" name="checkbox" id="checkbox" value="intUser_Roam_Sucrate" onclick="" style="height:12px;" />
   用户漫游成功率</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value=" intWeb_Up_Delay" onclick="" style="height:12px;" />
  WEB认证时延</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value="intWeb_Down_Delay" onclick="" style="height:12px;" />
    WEB下线时延</td>
  </tr>
  <tr>
     <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
     <input type="checkbox" name="checkbox" id="checkbox" value="intPeap_Up_Delay" onclick="" style="height:12px;" />
    PEAP认证时延</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value="intHttp_Resp_Delay" onclick="" style="height:12px;" />
    HTTP响应时延</td>
   <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
   <input type="checkbox" name="checkbox" id="checkbox" value="intPing_Delay" onclick="" style="height:12px;" />
   PING平均时延</td>
    <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
    <input type="checkbox" name="checkbox" id="checkbox" value="intFtp_Up_Speed" onclick="" style="height:12px;" />
   FTP上行速率</td>
   <td width="6%" class="listtit"  style="border-left:1px solid #32a4ea;">
   <input type="checkbox" name="checkbox" id="checkbox" value="intFtp_Down_Speed" onclick="" style="height:12px;" />
   FTP下行速率</td>
   <td colspan="2" align="right" height="25">
            <input type="button" name="b_submit" value="查看"  onclick="check()" style="cursor:hand" class="ipt1"/>
            </td>
  </tr>


</table>
</form>
<div id=imageDiv>

	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
		codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
		width="100%" height="100%" id="ie_chart"
		align="middle">
		<param name="allowScriptAccess" value="always" />
		<param name="movie"
			value="<%=url%>/open-flash-chart.swf?width=500&height=500&data=<%=url%>/threenet/moreindex_analysis.jsp" />
		<param name="quality" value="high" />
		<param name="bgcolor" value="#FFFFFF" />
		<embed src="<%=url%>/open-flash-chart.swf?data=<%=url%>/threenet/moreindex_analysis.jsp" quality="high"
			bgcolor="#FFFFFF" width="<%=width%>" height="<%=height%>"
			name="chart" align="middle" allowScriptAccess="always"
			type="application/x-shockwave-flash"
			pluginspage="http://www.macromedia.com/go/getflashplayer"
			id="chart" />
	</object>
	
</div>
	

  </body>
</html>
